﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace RN.ERP.DTO
{
    public class PayInfoSub
    {
        public Int32 ID { get; set; }
        public Guid KeyGUID { get; set; }
        public Int32? treeID { get; set; }
        public String Title { get; set; }
        public Double? SumPay { get; set; }
        public String bKind { get; set; }
        public Int32? SourceID { get; set; }
        public String Remark { get; set; }
        public Byte bPayStatus { get; set; }
        public Byte? bStatus { get; set; }
        public Int32? RightCode { get; set; }
        public String FlowCode { get; set; }
        public Byte? bType { get; set; }
        public String StrStatus
        {
            get
            {
                switch (this.bPayStatus.ToString())
                {
                    case "0":
                        return "添加订单";
                    case "1":
                        return "提交订单";
                    case "2":
                        return "线下支付";
                    case "3":
                        return "银联支付";
                    case "4":
                        return "支付确认";
                    default:
                        return "";
                }
            }
        }
        public bool IsCorpKey
        {
            get
            {
                switch (bKind.Substring(0, 1))
                {
                    case "C":
                    case "E":
                        return true;
                    default:
                        return false;
                }
            }
        }
        public String Description { get; set; }
        public Decimal? Fee { get; set; }
        public Decimal? YearlyFee { get; set; }
        public String FeeDescription { get; set; }
        public String UserInfo { get; set; }
        public Boolean? IsDel { get; set; }
    }
}
